﻿/// <reference path="../model/user.ts" />
/// <reference path="../../interfaces/iusercrud.ts" />

module enterpriseApp {
    'use strict';

    export class UserCrud implements IUserCrud {

        getAll(): User[]{
            var u1 = new User("Max Well", true, "123");
            var u2 = new User("JZal Rose", true, "356");
            var result = [u1, u2];
            return result;
        }
        get(id: String): User {
            var u = new User("Max Well", true, "123");
            return u;
        }
        put(user: User) {
            return null;
        }
    }
}